import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import echarts from 'echarts';


import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import Vuex from 'vuex'

Vue.use(Vuex)
Vue.use(ElementUI)


import axios from 'axios'
axios.defaults.baseURL="http://localhost:8888/hs"
Vue.prototype.$axios = axios

//cookies保证一致
// Vue.http.options.xhr = {withCredentials:true}
// Vue.http.options.emulateJSON = true; 
// axios.defaults.withCredentials = true;

// let echarts=require('echarts/lib/echarts')
// // 引入饼状图组件
// require('echarts/lib/chart/pie')
// // 引入提示框和title组件，图例
// require('echarts/lib/component/tooltip')
// require('echarts/lib/component/title')
// require('echarts/lib/component/legend')
Vue.prototype.$echarts = echarts //引入组件
// 导入echars
// import Echarts from 'vue-echarts'
// Vue.prototype.$echarts=Echarts
// import 'echarts/lib/chart/bar'
// import 'echarts/lib/component/tooltip'
// import 'echarts-gl'
// Vue.component('v-chart',Echarts)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
